// 导出路由规则
import Layout from '@/layout'

export default {
  path: '/news',
  name: 'news',
  component: Layout, // 给路由规则加名字
  redirect: '/news', // 组件
  meta: {
    title: '文章管理',
    icon: 'table'
  },
  // 配置二级路由表
  children: [{
    path: 'newsContent',
    name: 'newsContent',
    component: () => import('@/views/news/newsContent'),
    meta: { title: '文章内容', noCache: true }
  }, {
    path: 'newsCate',
    name: 'newsCate',
    component: () => import('@/views/news/newsCate'),
    meta: { title: '文章栏目', noCache: true }
  }]
}
